export interface general {
    code: number;
    message: string;
    ok: boolean;
}

export interface blockOfRole {
    id?: number | string;
    createTime?: string;
    updateTime?: string;
    username?: string;
    password?: string;
    name?: string;
    phone?: null;
    roleName?: string;
}

export interface userDate extends general {
    data: {
        records: blockOfRole[];
        total: number;
        size: number;
        current: number;
        orders: [];
        optimizeCountSql: boolean;
        hitCount: boolean;
        countId: null;
        maxLimit: null;
        searchCount: boolean;
        pages: number | string;
    };
}

// 职位
export interface role {
    id?: number;
    createTime?: string;
    updateTime?: string;
    roleName:string;
    remark?: null;
}

// 职位List
export type roleList = role[];

// 获取职位接口返回数
export interface allRole extends general {
    data: {
        assignRoles: roleList;
        allRolesList:roleList;
    };
}

// 分配
export interface needIds {
    roleIdList: [];
    userId:number
}

// 
export interface getPerType {
    id: number;
    createTime: string;
    updateTime: string;
    pid: number;
    name: string;
    code: string;
    toCode: null;
    type: number;
    status: null;
    level: number;
    children?: childType;
    select: boolean;
}

export type childType = getPerType[]

export interface allGetType extends general {
    data: getPerType[];
}
